﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Component
{
    public class Sessions
    {
       
        /// <summary>
        ///   public static Users CurrentUser
        /// </summary>
        public static UsersInfo CurrentUser
        {
            get
            {
                if (ManagementSession.ContainsInSession(ConstString._SessionUserInfo))
                    return ManagementSession.GetSession(ConstString._SessionUserInfo) as UsersInfo;
                return null;
            }
            set { 
                ManagementSession.SetSession(ConstString._SessionUserInfo,value); }
        }
      
    }
}
